package com.framework.form;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 登录表单
 */
@ApiModel(value = "登录表单")
public class LoginForm {
	@ApiModelProperty(value = "手机号")
	@NotBlank(message = "用户名或手机号不能为空")
	private String username;

	@ApiModelProperty(value = "密码")
	@NotBlank(message = "密码不能为空")
	private String password;

	@ApiModelProperty(value = "登录模式")
	private String mode;

	@ApiModelProperty(value = "手机验证码")
	private String validateCode;

	@ApiModelProperty("是否是内部登陆")
	private Integer isInternalLogin = 0;

	@ApiModelProperty(value = "平台app,web,im ")
	@NotBlank(message = "平台标志不能为空")
	private String platform;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public String getValidateCode() {
		return validateCode;
	}

	public void setValidateCode(String validateCode) {
		this.validateCode = validateCode;
	}

	public Integer getIsInternalLogin() {
		return isInternalLogin;
	}

	public void setIsInternalLogin(Integer isInternalLogin) {
		this.isInternalLogin = isInternalLogin;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}
}
